package com.ccloud.blog.modules.blog.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ccloud.blog.modules.blog.domain.BlogType;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author chentailai
 * @since 2019-09-10
 */
public interface BlogTypeMapper extends BaseMapper<BlogType> {
    /**
     * @author chentl
     * @description 获取博客索引
     * @date 2019/9/16 15:40
     * @params [userId，blogType]
     * @return java.util.List
     * @since JDK 1.7
     */
    BlogType getBlogTypeIndex(@Param("userId") Integer userId, @Param("blogType") Integer blogType);

    /**
     * @author chentl
     * @description 获取id最大值
     * @date 2019/9/17 11:01
     * @params []
     * @return java.lang.Integer
     * @since JDK 1.7
     */
    Integer selectMaxId();
}
